/*
 ============================================================================
 Name		: UnitestDocument.cpp
 Author	  : 
 Copyright   : Your copyright notice
 Description : CUnitestDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "UnitestAppUi.h"
#include "UnitestDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CUnitestDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CUnitestDocument* CUnitestDocument::NewL(CEikApplication& aApp)
    {
    CUnitestDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

// -----------------------------------------------------------------------------
// CUnitestDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CUnitestDocument* CUnitestDocument::NewLC(CEikApplication& aApp)
    {
    CUnitestDocument* self = new (ELeave) CUnitestDocument(aApp);

    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CUnitestDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CUnitestDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CUnitestDocument::CUnitestDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CUnitestDocument::CUnitestDocument(CEikApplication& aApp) :
    CAknDocument(aApp)
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CUnitestDocument::~CUnitestDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CUnitestDocument::~CUnitestDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CUnitestDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CUnitestDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new (ELeave) CUnitestAppUi;
    }

// End of File
